package org.mc.request.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel(value = "添加用户信息:UserRequest")
public class UserRequest implements Serializable {

    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "用户ID")
    private String userId;

    @NotNull(message = "手机号码不能为空")
    @ApiModelProperty(value = "手机号码")
    private String tel;

    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "传递的参数，为json字符串。（source：注册来源；recommenderName：推荐人手机号码；）")
    private String parameter;

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    @Override
    public String toString() {
        return "UserRequest{" +
                "userId='" + userId + '\'' +
                ", tel='" + tel + '\'' +
                ", parameter='" + parameter + '\'' +
                '}';
    }
}
